home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DUProjects / Mnu / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.2 KB  |  44 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 1 $
  2. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4. #ifndef FRAME_H
  5. #define FRAME_H
  6.  
  7. //=======================================================================
  8. // ----- Framework Includes -----
  9. #ifndef FWFRAME_H
  10. #include <FWFrame.h>        // FW_CFrame
  11. #endif
  12.  
  13. //=======================================================================
  14. class CMnuPart;
  15. class FW_CMenuEvent;
  16.  
  17. //=======================================================================
  18. class CMnuFrame : public FW_CFrame {
  19. public:
  20.     FW_DECLARE_AUTO(CMnuFrame)
  21.                         CMnuFrame(Environment* ev, 
  22.                                     ODFrame* odFrame, 
  23.                                     FW_CPresentation* presentation, 
  24.                                     CMnuPart* mnuPart);
  25.     virtual             ~CMnuFrame();
  26. protected:
  27. // overrides
  28.     virtual void        Draw(Environment *ev, 
  29.                              ODFacet* odFacet, 
  30.                              ODShape* invalidShape);
  31.     virtual FW_Boolean    DoAdjustMenus(Environment* ev,
  32.                                       FW_CMenuBar* menuBar, 
  33.                                       FW_Boolean hasMenuFocus,
  34.                                       FW_Boolean isRoot);
  35.     virtual FW_Boolean    DoMenu(Environment* ev,
  36.                                const FW_CMenuEvent& theMenuEvent);
  37. private:
  38.     CMnuPart*             fMnuPart;
  39.     FW_Boolean            fSoundOn;
  40. };
  41.  
  42. //=======================================================================
  43. #endif
  44.